import axios from "../utils/http.js"
export default{
//    轮播图获取数据
     getCarousel(data={}){
        return axios({
            url: "/api/resources/carousel",
            method: "POST",
            data: data
        })
     },
    // /product/getHotProduct 获取热门内容
    getHotProduct(data){
        return axios 
        return request({
            url: "/api/product/getHotProduct",
            method: "POST",
            data: data
        })
    },

// /product/getPromoProduct  获取各类商品数据
    getPromoProduct(){
        return request({
            url: "/api/product/getPromoProduct",
            method: "POST",
            data: data
        })
    }
}